package org.seven.jrdp.biz.t.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.seven.jrdp.biz.t.model.TRkd;
import org.seven.jrdp.commons.model.Option;

import tk.mybatis.mapper.common.Mapper;

public interface TRkdMapper extends Mapper<TRkd> {
	List<Map<String, Object>> find(Map<String, Object> map);

	List<String> findKqmc(String cpbh);

	List<Map<String, Object>> findQxrk(Map<String, Object> map);

	String getMaxCpbh();

	int getCountWwc();

	int getCountMx(String cpbh);

	String getGgxh(String cpbh);

	int getRkzl(String kqmc);

	int getYrkzl(String ggxh);

	int getKqks(String kqmc);

	int getYrkks(String kqmc);

	Map<String, Object> getDy(String cpbh);

	List<Map<String, Object>> findDy(String cpbh);

	List<Map<String, Object>> findDyMx(@Param("cpbh") String cpbh, @Param("kqmc") String kqmc);

	List<Map<String, Object>> findRkd();

	List<Map<String, Object>> findRkdMx(String cpbh);

	Map<String, Object> getRkdMx(@Param("cpbh") String cpbh, @Param("cpxh") String cpxh);

	void xgrkd(@Param("cpbh1") String cpbh1, @Param("cpbh") String cpbh, @Param("rkrq") Date rkrq, @Param("updateBy") String updateBy, @Param("updateDate") Date updateDate);

	void xgrkd1(@Param("cpbh1") String cpbh1, @Param("cpbh") String cpbh, @Param("cpxh") String cpxh, @Param("ewm") String ewm);

	void xgrkd2(@Param("cpbh1") String cpbh1, @Param("cpbh") String cpbh, @Param("cpxh") String cpxh, @Param("ewm") String ewm);

	void xgrkmx(@Param("cpbh") String cpbh, @Param("cpxh") String cpxh, @Param("ks") int ks, @Param("ewm") String ewm);

	void xgrkmx1(@Param("cpbh") String cpbh, @Param("cpxh") String cpxh, @Param("ks") int ks, @Param("ewm") String ewm);

	List<Option> findKcCpxh(String cpbh);
	
	List<Option> findCpxh(String cpbh);
}